package com.suntianci.stock.mapper;

import com.suntianci.stock.pojo.domain.StockBlockDomain;
import com.suntianci.stock.pojo.entity.StockBlockRtInfo;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
* @author 孙天赐
* @description 针对表【stock_block_rt_info(股票板块详情信息表)】的数据库操作Mapper
* @createDate 2024-12-24 15:39:27
* @Entity com.suntianci.stock.pojo.entity.StockBlockRtInfo
*/
public interface StockBlockRtInfoMapper {

    int deleteByPrimaryKey(Long id);

    int insert(StockBlockRtInfo record);

    int insertSelective(StockBlockRtInfo record);

    StockBlockRtInfo selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(StockBlockRtInfo record);

    int updateByPrimaryKey(StockBlockRtInfo record);

    /**
     * 获取国内板块最新的数据
     * @param lastDate
     * @return
     */
    List<StockBlockDomain> getblockInfo(Date lastDate);

    /**
     * 批量插入板块数据
     * @param stockBlockRtInfos
     * @return
     */
    int batchInsert(@Param("stockBlockRtInfos") List<StockBlockRtInfo> stockBlockRtInfos);
}
